package entity;


import java.util.ArrayList;

import entity.annotation.Id;
import entity.annotation.Onetomany;
import entity.annotation.Table;

@Table(name="tb_depot")
public class Depot {
	@Id
	private Integer DEPOT_ID;
	private String DEPOT_NAME;
	
	@Onetomany(mapby="tb_student",id="depot_id",fk="depot_id")
	private ArrayList<Student> stuset;
	//private List<Student> students;
	
	public Integer getDEPOT_ID() {
		return DEPOT_ID;
	}

	public void setDEPOT_ID(Integer dEPOT_ID) {
		DEPOT_ID = dEPOT_ID;
	}

	public String getDEPOT_NAME() {
		return DEPOT_NAME;
	}

	public void setDEPOT_NAME(String dEPOT_NAME) {
		DEPOT_NAME = dEPOT_NAME;
	}

	public ArrayList<Student> getStuset() {
		return stuset;
	}

	public void setStuset(ArrayList<Student> stuset) {
		this.stuset = stuset;
	}
	
}
